<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
	</head>
	<body>
		<script>
			console.log(Math.PI);
			console.log(Math.abs(-10));
			var n=4.5;
			console.log(Math.ceil(n));
			console.log(Math.floor(n));
			console.log(Math.round(n));
			
			console.log(Math.pow(2,3));
			console.log(Math.sqrt(4));
			
			console.log(Math.random());
			
			console.log(Math.floor(Math.random()*10));
			
			function play(){
				var playerHand=document.getElementById("input1").value;
				
			}
		</script>
		<h1>猜拳游戏</h1>
		请输入0 石头 1 剪刀 2 布
		<input type="text" id="input1" />
		<button onclick="play()">猜拳</button>
	</body>
</html>
